package com.midcontainer {
	import flash.display.Sprite;
	import flash.geom.Point;

	public class MainBoxes extends Sprite {
		public	var _labels : Array = new Array("A", "B", "C", "D", "E");
		//private	var	_numBoxes : int = _labels.length;
		public	var	_box : MainBoxItem;
		private	var	_selection : Number;

		public function MainBoxes() {
			createBoxes(_selection);
			trace(createBoxes(_selection));
			// trace(getPositionByIndex());
		}

		private function createBoxes(selection : Number) : void {
			_selection = selection;
			var boxStartX : Number = 200;

			for (var i : int = 0 ; i < _labels.length ;i++) {
				_box = new MainBoxItem(_labels[i]);
				_box.x = boxStartX + i * _box.width;
				addChild(_box);
			}
		}

		public function getPositionByIndex(pos : Number) : Point {
			return null;
		}
	}
}
